/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */


export const enum YogaPrintOptions {
  LAYOUT = 1,
  STYLE = 2,
  CHILDREN = 4
}

export function getYogaPrintOptionsFromNumber(value: number): YogaPrintOptions | never {
  switch (value) {
    case 1: return YogaPrintOptions.LAYOUT;
    case 2: return YogaPrintOptions.STYLE;
    case 4: return YogaPrintOptions.CHILDREN;
    default: throw new Error("Unknown enum value: " + value);
  }
}
